<?php
error_reporting(0);
require_once '../comm/wjt.php';
require_once 'inc/config.php';
require_once 'inc/function.php';
$uid=trim($_GET['u']);
if(!empty($uid)){
$buy_info=GetUserNumId($uid);
$level=$buy_info['user']['buyer_credit']['level'];
$sid=$buy_info['user']['user_id'];}
$username=$_COOKIE['username'];
$tag="cha";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<title>检测,看看<?=WEBNICK?>能为你在淘宝网购物节省多少钱,很准噢</title>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META content=IE=EmulateIE7 http-equiv=X-UA-Compatible>
<LINK rel=stylesheet type=text/css href="../template/<?=MOBAN?>/css/common.css">
<link type="text/css" rel="stylesheet" href="images/style.css" />
<script type="text/javascript" language="javascript" src="scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" language="javascript" src="scripts/ajax.class.js"></script>
<script type="text/javascript" language="javascript" src="scripts/buyer.js"></script>
<style type="text/css">
<!--
.STYLE1 {color: #0000FF}
.STYLE2 {color: #333333}
body,td,th {
	color: #333333;
}
a {
	font-size: 12px;
	color: #333333;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #333333;
}
a:hover {
	text-decoration: underline;
	color: #333333;
}
a:active {
	text-decoration: none;
	color: #990000;
}
-->
</style>
</head><body>
 <?php include('../template/'.MOBAN.'/header.tpl.php')?>
 <?php include('../template/'.MOBAN.'/nav.tpl.php')?>
<div class="wrapper">
  <?php if(empty($uid)){?>
<form action="" method="get" onSubmit="return chkTaoUser(this.u);">
<div class="banner">
<div class="text">
<input name="u" type="text" class="name" id="u" value="输入您的淘宝帐号看看能省多少钱？" onFocus="this.value='';chkTaoUser(this)" />
<input type="submit" value=" " class="smt" /></div><div class="why" id="about"><em onClick="$('#about').hide('slow')"></em>温馨提示：<?=WEBNICK?>是淘宝特约合作网站，<br />返现金额实际上是淘宝商家支付的广告费，<br />
本站将所得广告费全部返还给会员！</div></div>
</form>
<?php }else{?>
<div class="detal">
<div class="contain"><a href="?u=" style="float:right"><img src="images/back_smt.gif" border="0" /></a><span>淘宝帐号:</span><span><?=$uid?></span>   </span><span> 买家信用:</span><a href="http://rate.taobao.com/user-rate-<?=$sid?>--receivedOrPosted%7C0--buyerOrSeller%7C1.htm#RateType" target="_blank"><img src="images/sell_level/<?=$level?>.gif" height="16" border="0" /></a><br />
<span>您从 [<span id="stoptime"></span>]到 [<span id="starttime"></span>] 期间</span><br />
<span>淘宝花费：</span><span class="red" id="totPrice">￥--.--</span><span>如经过本站购买可返现约:</span><span class="red" id="backPrice">￥-.--</span></div>
<div class="notice">以上所计算的是您在淘宝购买的部分宝贝后所能获得的大概返现！</div>
<div class="remmend"><span>　</span><a href="<?=$siteurl?>" target="_blank">三步轻松拿返现</a>　<a href="javascript:;" onClick="alert('查询到的记录只是您购买成功的且已经给卖家评价的宝贝记录！还有部分没有评价的宝贝没有显示出来但很多都有返现！\n')">为什么我少了一些购买记录？</a>&nbsp;&nbsp;&nbsp;<a href="/" target="_blank">去购物拿返现＞＞</a></div>

<div class="why" id="about"><em onClick="$('#about').hide('slow')"></em>温馨提示：<?=WEBNICK?>是淘宝特约合作网站，<br />
返现金额实际上是淘宝商家支付的广告费，<br />
本站将所得广告费拿出大部份返还给会员！</div></div>
<?php }?>
<div class="main">
<div class="left"></div>
<div class="bg" style="position:relative">

<div class="title">
<table width="95%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><span class="user_name"><em>宝贝名称 / 时间</em></span></td>
    <td align="center"><span class="host">掌  柜</span></td> 
    <td><span class="prise">购买价格</span></td>
    <td><span class="recome">返现 </span></td>
  </tr>
</table>
</div>


<?php if(empty($uid)){?>
<div style="text-align:center; font-size:14px; line-height:50px;"><p align="left" style="color:red;font-weight:bold">
输入您的淘宝账号，就可以为您查询出您最近购买的宝贝记录，并为您计算出这些商品通过<?=WEBNICK?>购买后所获得的返现<br />
<span class="STYLE1">如查询不到，可刷新下重新查询即可！</span><br />
<span class="STYLE2" style=" text-indent:2em;text-align:left;">也许你还不知道什么是淘宝网购物返现，也许你也不相信在淘宝网购物真的能返现，不过，淘宝返现检测工具能为你检测出你最近购买的淘宝商品，并计算出理论应返现多少金额。如果你通过返现网或者使用淘宝一键返现宝购买这些商品，那就能得到相应的淘宝购物返现金额，最高能返现相应商品的50%哦~~~</span></p></div> 
<?php }elseif($sid==0){?>
<div style="text-align:center; font-size:14px; line-height:50px;>Sorry!你输入的淘宝账号有误，请核实后在查询！谢谢</div> 
<?php }else{?>				
<ul id="buylist"><div class="loading"></div></ul>
<div class="total"><div class="smt_reg"><input type="submit" class="reg" value=" " onClick="location.href='../user/register.php'" /></div><span>淘宝帐号:</span><span><?=$uid?></span>    <span> 买家信用:</span><a href="http://rate.taobao.com/user-rate-<?=$sid?>--receivedOrPosted%7C0--buyerOrSeller%7C1.htm#RateType" target="_blank"><img src="images/sell_level/<?=$level?>.gif" height="16" border="0" /></a><br />
<span>您在淘宝花费：</span><span class="red" id="totPrice1">￥0</span> <span>通过本站购买可返现超过:</span><span class="red" id="backPrice1">￥-.--</span></div>
<script language="javascript">getTaobaoke('<?=$sid?>')</script>  
<?php }?></div><div class="right"></div>
<div class="clear"></div></div></div></div>

<DIV class=clear></DIV>
<?php include('../template/'.MOBAN.'/footer.tpl.php')?></body></html>